import mongoose, { Schema, Document } from 'mongoose';

export interface IPuzzle extends Document {
    id: string;
    content: Array<any>;
}


const PuzzleSchema: Schema = new Schema({
    chat_id: { type: String, required: true },//文章的id
    content: { type: Array, default: [] },
}, { timestamps: true });

export default mongoose.models.Puzzle || mongoose.model<IPuzzle>('Puzzle', PuzzleSchema);
